package com.chunxiadong.mapper;

import com.chunxiadong.entity.Avatar;
import com.chunxiadong.entity.Picture;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @auther QiuShangcheng
 * @create 2021/6/8
 */
@Mapper
@Repository
public interface PictureMapper {
    Picture queryPictureById(Integer id);

    Picture queryPictureByPicAddr(String picAddr);

    int addPicture(Picture picture);

    int updatePicture(Picture picture);

    List<Picture> getAllPicture();

    int deletePicture(Integer id);

    int setAvatar(Avatar avatar);
}
